package com.yuncheng.spcyApi.service;

import com.yuncheng.spcyApi.entity.SpcyKpNdpxjl;
import com.yuncheng.common.base.service.BaseService;
import com.yuncheng.spcyApi.entity.SysUserPxjl;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

/**
 * @Description: 检查员-年度考评培训记录
 * @Author: yuncheng
 * @Date: 2024-02-23
 * @Version: V1.0
 */
public interface ISpcyKpNdpxjlService extends BaseService<SpcyKpNdpxjl> {

    /**
     *  获取用户本年度学时
     */
    String getTotalLearningHoursTheCurrentYearByNdkpId(String fndkpid);

    /**
     * 批量生成-年度培训记录
     */
    void genNdPxjl(List<SysUserPxjl> userPxjlList, String fndkpid) throws InvocationTargetException, IllegalAccessException;

    /**
     * 获取年度培训记录
     */
    List<SpcyKpNdpxjl> getNdpxjlByNdkpId(String fndkpid);

    /**
     * 删除年度培训记录
     */
    void deleteNdpxjlById(String id);

}
